const timerPromise = () => new Promise(resolve => {
  setTimeout(() => {
    resolve(12)
  }, 1000)
})
new Promise(resolve => {
  console.info('resolve')
  resolve(timerPromise())
}).then((data) => {
  console.info('resolved')
  console.info(data)
})
